home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
Adjust_HSV.ifx.Pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
647b
|
27 lines
/*
* Adjust_HSB.ifx.pre
* PreScript for adjusting Hue, Saturation, and Brightness.
* Saves the parameters into the ImpAdjustHSBParameters
* clip variable.
*
* by Steve Tibbett
*/
options results
Defaults=GetClip("ImpAdjustHSBParameters"arg(1));
if (Defaults="") then Defaults="0 0 0"
Parse Var Defaults Hue Saturation Brightness
Gadget.1 = 'I/100/16/Hue:/'Hue
Gadget.2 = 'I/100/30/Saturation:/'Saturation
Gadget.3 = 'I/100/44/Brightness:/'Brightness
ComplexRequest '"HSB Adjustments (-127 to 127)"' 3 Gadget 300 80
IF rc ~= 0 THEN return 10
Defaults=Result.1 Result.2 Result.3
call SetClip("ImpAdjustHSBParameters"arg(1), Defaults);